﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Decoration.Models.Models
{
    /// <summary>
    /// 工序
    /// </summary>
    public class ProcedureInfo
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [ForeignKey(nameof(BusinessId))]
        public int BusinessId { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        [MaxLength(100)]
        public string ProcedureName { get; set; } = null!;

        /// <summary>
        /// 工序详情
        /// </summary>
        [MaxLength(500)]
        public string? ProcedureDesc { get; set; }

        /// <summary>
        /// 工序序号
        /// </summary>
        public int ProcedureOrder { get; set; }

        public DateTime CreateTime { get; set; } = DateTime.Now;

        public int Status { get; set; } = 1;



        public virtual BusinessInfo Business { get; set; } = null!;
    }
}
